<template>
  <div class="top">
    <el-button type="primary" @click="goHome">回首页</el-button>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'

let rou = useRouter()

/**
 * @description: 回到首页
 * @return {*}
 */
const goHome = () => {
  rou.push('/home')
}
</script>
<style scoped lang="scss"></style>
